import { test } from "@/service/spider"

import router from "@/router"
import CacheLocal from "@/utils/cacheLocal"
import { Module, ActionContext, Action, Store, ActionTree } from "vuex"
import { ISpiderState } from "./types"
import { IState } from "@/store/types"
const actions: ActionTree<ISpiderState, IState> = {
  async spiderTest() {
    console.log("来了")

    const res = await test()
    console.log("爬虫测试", res)
  }
}

export type ISpiderActions = {
  moduleSpider: {
    spiderTest: () => any
  }
}

export { actions }
